package com.example.oop.Repository;

import com.example.oop.ManageSpringBeans;

//该类用来存放所有仓库，便于多线程服务互斥访问repository
public class RepositoryManager {
    //静态final变量
    public static final UserRepository userRepository = ManageSpringBeans.getBean(UserRepository.class);
    public static final ChatRoomRepository chatRoomRepository = ManageSpringBeans.getBean(ChatRoomRepository.class);
    public static final ChatRepository chatRepository = ManageSpringBeans.getBean(ChatRepository.class);
    public static final PlayerRepository playerRepository = ManageSpringBeans.getBean(PlayerRepository.class);
    public static final ChessPlayRepository chessPlayRepository = ManageSpringBeans.getBean(ChessPlayRepository.class);
}
